package ClientDB; 

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;

public class Client {
	
	// start client's program
	public static void main(String[] args) {
		
		Menu.portNumber = Integer.parseInt(args[0]);
		
		Display display = new Display();
        Shell shell = new Shell(display, SWT.MENU);
        new Menu(shell);
        shell.open();
        while (!shell.isDisposed()) {
        	if (!display.readAndDispatch()) {
        		display.sleep();
        	}
        }
	}

}
